package com.bgy.model;


import com.jfinal.kit.StrKit;
import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.Model;

/**
 * 记录用户登录信息
 * @author Hegx
 */
public class LogLogin extends Model<LogLogin> {
	private static final long serialVersionUID = 6204222383226990020L;
	static Log log = Log.getLog(LogLogin.class);	
	public static final LogLogin me = new LogLogin();	
	
	public boolean save(String username,String agentid){						
		if (StrKit.notBlank(username)) {
			LogLogin me = new LogLogin();
			me.set("username", username);
			me.set("agentid", agentid);
			return me.save();
		}
		return false;
	}	
}

